package com.hycreate.platform.modules.unitpoint;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hycreate.platform.common.persistence.Page;
import com.hycreate.platform.common.service.CrudService;

/**
 * 积分Service
 * @author wang
 * @version 2017-11-29
 */
@Service
@Transactional(readOnly = true)
public class YhcgUnitService extends CrudService<YhcgUnitDao, YhcgUnit> {

	public YhcgUnit get(String id) {
		return super.get(id);
	}
	
	public List<YhcgUnit> findList(YhcgUnit yhcgUnit) {
		return super.findList(yhcgUnit);
	}
	
	public Page<YhcgUnit> findPage(Page<YhcgUnit> page, YhcgUnit yhcgUnit) {
		return super.findPage(page, yhcgUnit);
	}
	
	@Transactional(readOnly = false)
	public void save(YhcgUnit yhcgUnit) {
		super.save(yhcgUnit);
	}
	
	@Transactional(readOnly = false)
	public void delete(YhcgUnit yhcgUnit) {
		super.delete(yhcgUnit);
	}
	
}